package top.zsyle.sycc.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import top.zsyle.sycc.fallback.MediaFallbackFactory;
import top.zsyle.sycc.result.JsonResult;

@FeignClient(value = "service-media", path = "mediaFile", contextId = "mediaService", fallbackFactory = MediaFallbackFactory.class)
public interface MediaService {

    @RequestMapping(value = "/list/{courseId}",method = RequestMethod.GET)
    JsonResult getMediaFileByCourseId(@PathVariable("courseId") Long courseId);

}
